//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

export const addStatistics = (form) => {
  return request.post("/statistics", form);
};
export const getBusinessProfile = (page, size) => {
  return request.get("/statistics", {
    params: {
      page: page,
      size: size,
    },
  });
};
export const deleteStatistics = (id) => {
  return request.delete("/statistics", {
    params: {
      id: id,
    },
  });
};
export const reviseStatistics = (form) => {
  console.log(form);
  return request.put("/statistics", form);
};

export const searchStatistics = (page, size) => {
  return request.get("/statistics", {
    params: {
      page: page,
      size: size,
    },
  });
};
